package biz.microplus.information.bean;

import biz.microplus.information.common.DateUtil;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 账户扩展资料数据模型
 */
@Entity
public class EmployeeBean extends BaseBean {

    public EmployeeBean(){}

    public EmployeeBean(int parentId){
        this.parentId = parentId;
        this.createdAt = DateUtil.getNowTimestamp();
    }

    /**
     * 标识
     */
    @Id
    private int id;
    /**
     * 账户ID
     */
    private int parentId;
    /**
     * 操作人ID
     */
    private int userId;
    /**
     * 角色名
     */
    private String roleName;
    /**
     * 状态
     */
    private String status;
    /**
     * 创建时间戳
     */
    private int createdAt;
    /**
     * 更新时间戳
     */
    private int updatedAt;
    /**
     * 删除时间戳
     */
    private int deletedAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(int createdAt) {
        this.createdAt = createdAt;
    }

    public int getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(int updatedAt) {
        this.updatedAt = updatedAt;
    }

    public int getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(int deletedAt) {
        this.deletedAt = deletedAt;
    }
}